Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Flaky - TestFindFilePath #498

Closed
wants to merge 1 commit into from

Conversation

d0n601
Copy link
Contributor

@d0n601 d0n601 commented Jun 7, 2024

Summary:
The TestFindFilePath seems to have been failing for a long time, and has been disabled as a result.

From what I could tell the majority of the failures were caused by line 107 of common_test.go

Error:

mkdir /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/buck-out/v2/gen/fbcode/fec7e7876e628ce7/security/redteam/purple_team/ttpforge/pkg/blocks/__blocks_test__/temp_test_directory: file exists

https://www.internalfb.com/intern/testinfra/diagnostics/15762598732684907.281475092932540.1717744299/
https://www.internalfb.com/intern/testinfra/diagnostics/15762598732684907.281475092932540.1717744298/
etc...

Modifying os.Mkdir to os.MkdirAll should prevent an error from being thrown in the event that this directory already exists on the system.

Differential Revision: D58301576

Summary:
The TestFindFilePath seems to have been failing for a long time, and has been disabled as a result.

From what I could tell the majority of the failures were caused by line 107 of `common_test.go`

Error:

```
mkdir /data/sandcastle/boxes/eden-trunk-hg-fbcode-fbsource/buck-out/v2/gen/fbcode/fec7e7876e628ce7/security/redteam/purple_team/ttpforge/pkg/blocks/__blocks_test__/temp_test_directory: file exists
```
https://www.internalfb.com/intern/testinfra/diagnostics/15762598732684907.281475092932540.1717744299/
https://www.internalfb.com/intern/testinfra/diagnostics/15762598732684907.281475092932540.1717744298/
etc...

Modifying `os.Mkdir` to `os.MkdirAll` should prevent an error from being thrown in the event that this directory already exists on the system.

Differential Revision: D58301576
@TTPForge-bot TTPForge-bot added the area/go Changes made to go resources label Jun 7, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D58301576

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in cdc8a84.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants